home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / include / genmat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-13  |  1.5 KB  |  40 lines

  1. /*****************************************************************************
  2. * General definitions of/for GenMat.c module                     *
  3. *****************************************************************************/
  4.  
  5. #ifndef    GEN_MAT_H
  6. #define GEN_MAT_H
  7.  
  8. /* And prototypes of the functions: */
  9.  
  10. #if defined(__cplusplus) || defined(c_plusplus)
  11. extern "C" {
  12. #endif
  13.  
  14. void MatGenUnitMat(MatrixType Mat);
  15. void MatGenMatTrans(RealType Tx, RealType Ty, RealType Tz, MatrixType Mat);
  16. void MatGenMatUnifScale(RealType Scale, MatrixType Mat);
  17. void MatGenMatScale(RealType Sx, RealType Sy, RealType Sz, MatrixType Mat);
  18. void MatGenMatRotX1(RealType Teta, MatrixType Mat);
  19. void MatGenMatRotX(RealType CosTeta, RealType SinTeta, MatrixType Mat);
  20. void MatGenMatRotY1(RealType Teta, MatrixType Mat);
  21. void MatGenMatRotY(RealType CosTeta, RealType SinTeta, MatrixType Mat);
  22. void MatGenMatRotZ1(RealType Teta, MatrixType Mat);
  23. void MatGenMatRotZ(RealType CosTeta, RealType SinTeta, MatrixType Mat);
  24.  
  25. void MatMultTwo4by4(MatrixType MatRes, MatrixType Mat1, MatrixType Mat2);
  26. void MatAddTwo4by4(MatrixType MatRes, MatrixType Mat1, MatrixType Mat2);
  27. void MatSubTwo4by4(MatrixType MatRes, MatrixType Mat1, MatrixType Mat2);
  28. void MatScale4by4(MatrixType MatRes, MatrixType Mat, RealType *Scale);
  29.  
  30. void MatMultVecby4by4(RealType VRes[3], RealType Vec[3], MatrixType Mat);
  31. void MatMultWVecby4by4(RealType VRes[4], RealType Vec[4], MatrixType Mat);
  32.  
  33. int MatInverseMatrix(MatrixType M, MatrixType InvM);
  34.  
  35. #if defined(__cplusplus) || defined(c_plusplus)
  36. }
  37. #endif
  38.  
  39. #endif /* GEN_MAT_H */
  40.